Abstract
BookML is a fully automated solution for the production of accessible html content straight from LaTeX, based on LaTeXML for the widest LaTeX compatibility and bookdown for a modern and accessible look. Integration with Overleaf is provided via a GitHub action. Outputs are also packaged as SCORM for ease of use in higher education. Created by and maintained for maths lecturers at the University of Leeds.
Downloads and sources available on GitHub.
Formats: GitBook (html), plain with Latin Modern (html), PDF, LaTeX source.
For Leeds-specific instructions see the Leeds BookML guide.
BookML is a small package to help you convert LaTeX documents into accessible html very similar to the one produced by bookdown. The conversion is done by LaTeXML, which understands a wide collection of LaTeX packages and can deal with all sorts weird constructs. To see plain(ish) LaTeXML in action, just open any arXiv html preprint. For examples of BookML documents, see:
- •
- •
-
•
forall : Calgary by Richard Zach.
-
•
Representation Theory. A Categorical Approach by Jan E. Grabowski.
-
•
Probabilidade by Leonardo T. Rolla and Bernando N.B. de Lima.
-
•
Some resources of REA-MECC.
BookML key features are:
-
•
simple installation: BookML is just a zip file you unpack in the folder containing your .tex files (admittedly a lie: you must install LaTeXML first, see Getting started on your device);
-
•
accessible and mobile friendly output based on the popular bookdown project, including font selection and dark mode, tweaked to meet the Web Content Accessibility Guidelines 2.1 level AA;
-
•
fully automated (re-)compilation based on which files have changed on disk, powered by GNU Make: running a single
makewill recompile the files which need updating; -
•
high quality conversion of external EPS and PDF figures to SVG via dvisvgm, rather than ImageMagick used by LaTeXML;
- •
-
•
easy insertion of alternative text for images;
-
•
arbitrary html content in LaTeX, for instance to create foldable paragraphs;
-
•
declare and include alternative PDF versions, which are also recompiled automatically (for instance sans serif, large print);
-
•
outputs are automatically packaged into zip files and SCORM packages, which are supported natively by most Learning Management Systems.